<template>
	<view class="block-pushs-item" @click="goPage('/pages/mutual/detail/detail?id='+item.id)">
		<view class="left">
			<view class="left-head">
				<image :src="item.avatar ? item.avatar : require('../../static/images/avatar.png')" mode="aspectFill"></image>
			</view>
			<view class="left-contet">
				<view class="title fex1">
					{{item.name}}
				</view>
				<view class="nums">
					<text class="num">{{item.use_quota}}人赚到</text>
					<text class="num">剩余{{item.quota-item.use_quota}}个</text>
				</view>
			</view>
		</view>
		<view class="right">
			<view class="right-money">
				<text>赏金</text>
				<text>{{item.price}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		name:"BlockPushsItem",
		props:{
			item:{
				type:Object,
				default(){
					return {}
				}
			}
		},
		mounted() {
		},
		methods:{
			goPage(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style scoped lang="less" src="./BlockPushsItem.less"></style>
